<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Capstone</title>
</head>
<body>	
	<h2>Host Files</h2>
	<form action="FileTransfer" method="POST">
		<select name="hostF">
			<c:forEach var="file" items="${hostFiles }">
				<option value="${file }">${file }</option>		
			</c:forEach>
		</select>
		<input type="hidden" name="hostUUID" value="${host.getUuid() }"/>
		<input type="hidden" name="hostIp" value="${host.getIp() }"/>
		<input type="hidden" name="targetUUID" value="${target.getUuid() }"/>
		<input type="hidden" name="targetIp" value="${target.getIp() }"/>
		<input type="submit" value="Transfer to target"/>
	</form>
	
	<h2>Target Files</h2>
	<form action="FileTransfer" method="POST">
		<select name="targetF">
			<c:forEach var="tfile" items="${targetFiles }">
				<option value="${tfile }">${tfile }</option>
			</c:forEach>
		</select>
		<input type="hidden" name="hostUUID" value="${target.getUuid() }"/>
		<input type="hidden" name="hostIp" value="${target.getIp() }"/>
		<input type="hidden" name="targetIp" value="${host.getIp() }"/>
		<input type="hidden" name="targetUUID" value="${host.getUuid() }"/>
		<input type="submit" value="Transfer to host"/>
	</form>
</body>
</html>